<template>
  <div>
    <el-row class="layout">
      <span style="font-size: 20px">就爱收银台</span>
      <div style="margin-top: 15px">
        订单提交成功，请尽快付款！订单号：217608814483
      </div>
      <el-card class="payment" header="就爱支付">
        <div>
          <el-radio v-model="radio" label="1"> 微信支付</el-radio>
          <span style="margin-left: 14.5px">支付：{{ PriceSum }}元</span>
        </div>
        <div style="margin-top: 20px">
          <el-radio v-model="radio" label="2"> 支付宝支付</el-radio>
          <span>支付：{{ PriceSum }}元</span>
        </div>
        <div style="margin-top: 20px">
          <el-radio v-model="radio" label="3">银行卡支付</el-radio>
          <span>支付：{{ PriceSum }}元</span>
        </div>
        <div style="margin-top: 20px">
          <el-radio v-model="radio" label="4">信用卡支付</el-radio>
          <span>支付：{{ PriceSum }}元</span>
        </div>
      </el-card>
      <div style="float: right; margin-top: 15px">
        <el-button
          type="danger"
          style="width: 200px"
          @click="dialogVisible = true"
          >立即支付</el-button
        >
      </div>
      <!-- 弹出框 -->
      <el-dialog
        title="扫描二维码支付"
        :visible.sync="dialogVisible"
        width="300px"
        :before-close="handleClose"
      >
        <span>
          <img :src="this.$host + '132742425082459357.png'" />
        </span> </el-dialog
      >s
    </el-row>
  </div>
</template>

<script>
export default {
  data() {
    return {
      //弹出框状态
      dialogVisible: false,
      radio: "1",
      PriceSum: this.$route.query.price,
    };
  },
  methods: {
    //立即购买弹框
    handleClose(done) {
      this.$confirm("确认关闭？")
        .then(() => {
          done();
        })
        .catch(() => {});
    },
  },
};
</script>

<style>
.layout {
  width: 60%;
  margin: auto;
  min-height: calc(100vh - 120px);
  background-color: white;
  margin-top: 5px;
}
.payment {
  height: 280px;
  margin-top: 30px;
}
</style>